package br.ufpr.inf.formulario;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import java.util.Set;
import br.ufpr.inf.formulario.Professor;
import java.util.HashSet;
import javax.persistence.ManyToMany;
import javax.persistence.CascadeType;
import javax.validation.constraints.NotNull;
import br.ufpr.inf.formulario.AtividadeSolicitada;

@RooJavaBean
@RooToString
@RooEntity(entityName = "Solicitacao_B") 
public class Solicitacao {

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<Professor> professor = new HashSet<Professor>();

    @NotNull
    private Boolean parecer;

    @NotNull
    private String dataSolicitacao;

    @ManyToMany(cascade = CascadeType.ALL)
    private Set<AtividadeSolicitada> atividadeSolicitada = new HashSet<AtividadeSolicitada>();
    
}
